﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace S.Organization.Domian.Model
{
    /// <summary>
    /// 部门信息
    /// </summary>
    [Table("DepartmentInfo")]
    public class DepartmentInfo
    {
        /// <summary>
        /// 主键自增
        /// </summary>
        [Key]
        public int DepId { get; set; }

        /// <summary>
        /// 部门名称
        /// </summary>
        [StringLength(30)]
        public string? DepName { get; set; }

        /// <summary>
        /// 部门停用
        /// </summary>
        public bool DepState { get; set; }

        /// <summary>
        /// 部门类型
        /// </summary>
        [StringLength(30)]
        public string? DEpType { get; set; }

        /// <summary>
        /// 部门序号
        /// </summary>
        [StringLength(30)]
        public string? DepNumber { get; set; }

        /// <summary>
        /// /部门区域
        /// </summary>
        [StringLength(30)]
        public string? DepArea { get; set; }
        
        /// <summary>
        /// 负责人
        /// </summary>
        [StringLength(30)]
        public string? Principal { get; set; }

        /// <summary>
        /// 父ID
        /// </summary>
        public int PId { get; set; }

    }
}
